package com.cw.DesignModel23.Behavioral.CommandPattern;

/**
 * 命令接收者
 *      执行命令
 */
public class Invoker {

	private Command command;

	public Command getCommand() {
		return command;
	}

	public void setCommand(Command command) {
		this.command = command;
	}
	
	public void action(){
		this.command.execute();
	}
}
